computer graphics interview questions

to select the optimum raster locations to represent a straight line
to select either Δx or Δy, whichever is larger, is chosen as one raster unit
we find on which side of the line the midpoint lies
both a and b